package com.ly.auto.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ly.auto.entity.User;
import com.ly.auto.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService extends ServiceImpl<UserMapper, User> {

    @Autowired
    private UserMapper userMapper;

    public void getPhoneCode(String phone){

    }

    public User findByUsername(String userName) {
       return userMapper.findByUsername(userName);
    }
}
